<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="css/project-content.css" rel="stylesheet" type="text/css" media="all" />
    <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" media="all" />
    <title>项目详情</title>
</head>

<body>
    <?php 
    require_once("./system/loginCheck.php");
    require_once("../congfig/config.php");
    $pid=$_GET["pid"];
    $sql="select * from proinfor where id = $pid";
    $result=$conn->query($sql);
    $row=$result->fetch_array();
     ?>
    <div class="container">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><?php echo $row["pName"]; ?></h3>
            </div>
            <div class="panel-body">

                <span class="project">项目负责人:</span><br>
                <span><?php echo $row["pChar"]; ?></span><br><br>
                <span class="project">指导教师:</span><br>
                <span><?php echo $row["teacher"]; ?></span><br><br>
                <span class="project">项目描述:</span><br>
                <span><?php echo $row["pDesc"]; ?></span><br><br>
                <span class="project">项目进度：</span><br>
                <span>
                    <?php 
                    if ($row["pRank"]==0) {
                        echo "申请立项";
                    }
                    elseif ($row["pRank"]==1) {
                        echo "立项成功";
                    }
                    elseif ($row["pRank"]==2) {
                        echo "立项失败";
                    }
                    elseif ($row["pRank"]==3) {
                        echo "申请结项";
                    }
                    elseif ($row["pRank"]==4) {
                        echo "结项成功";
                    }
                    elseif ($row["pRank"]==5) {
                        echo "结项失败";
                    }
                    elseif ($row["pRank"]==6) {
                        echo "逾期项目";
                    }
                     ?>
                </span>
                <span class="pull-right project"><?php echo $row["pDate"]; ?></span>
            </div>
        </div>
    </div>
</body>

</html>